-- GENERATED SPELL FOR [Dreadmaw] --


function spell0_23275(pUnit, Event) --@Growth,Self--
pUnit:FullCastSpellOnTarget(41953,pUnit)
pUnit:RegisterEvent('Sorts_23275', 589, 1)
end

function spell1_23275(pUnit, Event) --@Rampaging Charge,n/a--
pUnit:FullCastSpellOnTarget(41939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23275', 627, 1)
end

function spell2_23275(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23275', 548, 1)
end

function Sorts_23275(pUnit, Event)
local choix_sorts_23275 = math.random(0, 2)
if choix_sorts_23275 == 0 then
pUnit:RegisterEvent('spell0_23275', 1, 1)
end
if choix_sorts_23275 == 1 then
pUnit:RegisterEvent('spell1_23275', 1, 1)
end
if choix_sorts_23275 == 2 then
pUnit:RegisterEvent('spell2_23275', 1, 1)
end
end

function mob23275_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23275', math.random(1500, 3000), 1)
end

function mob23275_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23275_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23275_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23275, 1, 'mob23275_Action')
RegisterUnitEvent(23275, 2, 'mob23275_Leave')
RegisterUnitEvent(23275, 3, 'mob23275_Kill')
RegisterUnitEvent(23275, 4, 'mob23275_Die')
